.class Lcom/netease/newsreader/activity/AccountLogin$1;
.super Ljava/lang/Object;
.source "AccountLogin.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/AccountLogin;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/AccountLogin;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/AccountLogin;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/AccountLogin$1;->this$0:Lcom/netease/newsreader/activity/AccountLogin;

    .line 208
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 9
    .parameter "v"

    .prologue
    const/4 v8, 0x1

    .line 212
    iget-object v4, p0, Lcom/netease/newsreader/activity/AccountLogin$1;->this$0:Lcom/netease/newsreader/activity/AccountLogin;

    invoke-static {v4}, Lcom/netease/newsreader/activity/AccountLogin;->access$0(Lcom/netease/newsreader/activity/AccountLogin;)Landroid/widget/EditText;

    move-result-object v4

    invoke-virtual {v4}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v4

    if-nez v4, :cond_1

    const-string v3, ""

    .line 213
    .local v3, un:Ljava/lang/String;
    :goto_0
    const-string v4, "@"

    invoke-virtual {v3, v4}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v4

    if-nez v4, :cond_0

    .line 214
    iget-object v4, p0, Lcom/netease/newsreader/activity/AccountLogin$1;->this$0:Lcom/netease/newsreader/activity/AccountLogin;

    invoke-static {v4}, Lcom/netease/newsreader/activity/AccountLogin;->access$0(Lcom/netease/newsreader/activity/AccountLogin;)Landroid/widget/EditText;

    move-result-object v4

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, "@163.com"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 216
    :cond_0
    iget-object v4, p0, Lcom/netease/newsreader/activity/AccountLogin$1;->this$0:Lcom/netease/newsreader/activity/AccountLogin;

    invoke-static {v4}, Lcom/netease/newsreader/util/Tools;->CheckNetwork(Landroid/content/Context;)Z

    move-result v4

    if-eqz v4, :cond_2

    .line 217
    iget-object v4, p0, Lcom/netease/newsreader/activity/AccountLogin$1;->this$0:Lcom/netease/newsreader/activity/AccountLogin;

    iget-object v5, p0, Lcom/netease/newsreader/activity/AccountLogin$1;->this$0:Lcom/netease/newsreader/activity/AccountLogin;

    const-string v6, ""

    const-string v7, "\u6b63\u5728\u767b\u5f55..."

    invoke-static {v5, v6, v7, v8, v8}, Landroid/app/ProgressDialog;->show(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ZZ)Landroid/app/ProgressDialog;

    move-result-object v5

    invoke-static {v4, v5}, Lcom/netease/newsreader/activity/AccountLogin;->access$1(Lcom/netease/newsreader/activity/AccountLogin;Landroid/app/ProgressDialog;)V

    .line 218
    new-instance v1, Ljava/lang/Thread;

    new-instance v4, Lcom/netease/newsreader/activity/AccountLogin$LoginHandler;

    iget-object v5, p0, Lcom/netease/newsreader/activity/AccountLogin$1;->this$0:Lcom/netease/newsreader/activity/AccountLogin;

    invoke-direct {v4, v5}, Lcom/netease/newsreader/activity/AccountLogin$LoginHandler;-><init>(Lcom/netease/newsreader/activity/AccountLogin;)V

    invoke-direct {v1, v4}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 219
    .local v1, loginThread:Ljava/lang/Thread;
    invoke-virtual {v1}, Ljava/lang/Thread;->start()V

    .line 230
    .end local v1           #loginThread:Ljava/lang/Thread;
    :goto_1
    return-void

    .line 212
    .end local v3           #un:Ljava/lang/String;
    :cond_1
    iget-object v4, p0, Lcom/netease/newsreader/activity/AccountLogin$1;->this$0:Lcom/netease/newsreader/activity/AccountLogin;

    invoke-static {v4}, Lcom/netease/newsreader/activity/AccountLogin;->access$0(Lcom/netease/newsreader/activity/AccountLogin;)Landroid/widget/EditText;

    move-result-object v4

    invoke-virtual {v4}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v4

    invoke-interface {v4}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v3

    goto :goto_0

    .line 221
    .restart local v3       #un:Ljava/lang/String;
    :cond_2
    iget-object v4, p0, Lcom/netease/newsreader/activity/AccountLogin$1;->this$0:Lcom/netease/newsreader/activity/AccountLogin;

    invoke-static {v4, v8}, Lcom/netease/newsreader/activity/AccountLogin;->access$2(Lcom/netease/newsreader/activity/AccountLogin;Z)V

    .line 222
    new-instance v2, Landroid/os/Message;

    invoke-direct {v2}, Landroid/os/Message;-><init>()V

    .line 223
    .local v2, message:Landroid/os/Message;
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 224
    .local v0, bundle:Landroid/os/Bundle;
    const-string v4, "isNetError"

    iget-object v5, p0, Lcom/netease/newsreader/activity/AccountLogin$1;->this$0:Lcom/netease/newsreader/activity/AccountLogin;

    invoke-static {v5}, Lcom/netease/newsreader/activity/AccountLogin;->access$3(Lcom/netease/newsreader/activity/AccountLogin;)Z

    move-result v5

    invoke-virtual {v0, v4, v5}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 225
    invoke-virtual {v2, v0}, Landroid/os/Message;->setData(Landroid/os/Bundle;)V

    .line 226
    iget-object v4, p0, Lcom/netease/newsreader/activity/AccountLogin$1;->this$0:Lcom/netease/newsreader/activity/AccountLogin;

    iget-object v4, v4, Lcom/netease/newsreader/activity/AccountLogin;->loginHandler:Landroid/os/Handler;

    invoke-virtual {v4, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_1
.end method
